/****************************************************************************
** Meta object code from reading C++ file 'Console.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../src/IO/Console.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Console.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_IO__Console_t {
    QByteArrayData data[63];
    char stringdata0[800];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_IO__Console_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_IO__Console_t qt_meta_stringdata_IO__Console = {
    {
QT_MOC_LITERAL(0, 0, 11), // "IO::Console"
QT_MOC_LITERAL(1, 12, 11), // "echoChanged"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 12), // "dataReceived"
QT_MOC_LITERAL(4, 38, 15), // "dataModeChanged"
QT_MOC_LITERAL(5, 54, 17), // "autoscrollChanged"
QT_MOC_LITERAL(6, 72, 17), // "lineEndingChanged"
QT_MOC_LITERAL(7, 90, 18), // "displayModeChanged"
QT_MOC_LITERAL(8, 109, 18), // "historyItemChanged"
QT_MOC_LITERAL(9, 128, 19), // "textDocumentChanged"
QT_MOC_LITERAL(10, 148, 20), // "showTimestampChanged"
QT_MOC_LITERAL(11, 169, 14), // "stringReceived"
QT_MOC_LITERAL(12, 184, 4), // "text"
QT_MOC_LITERAL(13, 189, 4), // "save"
QT_MOC_LITERAL(14, 194, 5), // "clear"
QT_MOC_LITERAL(15, 200, 9), // "historyUp"
QT_MOC_LITERAL(16, 210, 11), // "historyDown"
QT_MOC_LITERAL(17, 222, 4), // "send"
QT_MOC_LITERAL(18, 227, 4), // "data"
QT_MOC_LITERAL(19, 232, 7), // "setEcho"
QT_MOC_LITERAL(20, 240, 7), // "enabled"
QT_MOC_LITERAL(21, 248, 5), // "print"
QT_MOC_LITERAL(22, 254, 10), // "fontFamily"
QT_MOC_LITERAL(23, 265, 11), // "setDataMode"
QT_MOC_LITERAL(24, 277, 8), // "DataMode"
QT_MOC_LITERAL(25, 286, 4), // "mode"
QT_MOC_LITERAL(26, 291, 13), // "setAutoscroll"
QT_MOC_LITERAL(27, 305, 16), // "setShowTimestamp"
QT_MOC_LITERAL(28, 322, 13), // "setLineEnding"
QT_MOC_LITERAL(29, 336, 10), // "LineEnding"
QT_MOC_LITERAL(30, 347, 14), // "setDisplayMode"
QT_MOC_LITERAL(31, 362, 11), // "DisplayMode"
QT_MOC_LITERAL(32, 374, 6), // "append"
QT_MOC_LITERAL(33, 381, 3), // "str"
QT_MOC_LITERAL(34, 385, 12), // "addTimestamp"
QT_MOC_LITERAL(35, 398, 11), // "displayData"
QT_MOC_LITERAL(36, 410, 10), // "onDataSent"
QT_MOC_LITERAL(37, 421, 12), // "addToHistory"
QT_MOC_LITERAL(38, 434, 7), // "command"
QT_MOC_LITERAL(39, 442, 14), // "onDataReceived"
QT_MOC_LITERAL(40, 457, 9), // "dataModes"
QT_MOC_LITERAL(41, 467, 11), // "lineEndings"
QT_MOC_LITERAL(42, 479, 12), // "displayModes"
QT_MOC_LITERAL(43, 492, 13), // "formatUserHex"
QT_MOC_LITERAL(44, 506, 4), // "echo"
QT_MOC_LITERAL(45, 511, 10), // "autoscroll"
QT_MOC_LITERAL(46, 522, 13), // "showTimestamp"
QT_MOC_LITERAL(47, 536, 13), // "saveAvailable"
QT_MOC_LITERAL(48, 550, 8), // "dataMode"
QT_MOC_LITERAL(49, 559, 21), // "IO::Console::DataMode"
QT_MOC_LITERAL(50, 581, 10), // "lineEnding"
QT_MOC_LITERAL(51, 592, 23), // "IO::Console::LineEnding"
QT_MOC_LITERAL(52, 616, 11), // "displayMode"
QT_MOC_LITERAL(53, 628, 24), // "IO::Console::DisplayMode"
QT_MOC_LITERAL(54, 653, 20), // "currentHistoryString"
QT_MOC_LITERAL(55, 674, 16), // "DisplayPlainText"
QT_MOC_LITERAL(56, 691, 18), // "DisplayHexadecimal"
QT_MOC_LITERAL(57, 710, 8), // "DataUTF8"
QT_MOC_LITERAL(58, 719, 15), // "DataHexadecimal"
QT_MOC_LITERAL(59, 735, 12), // "NoLineEnding"
QT_MOC_LITERAL(60, 748, 7), // "NewLine"
QT_MOC_LITERAL(61, 756, 14), // "CarriageReturn"
QT_MOC_LITERAL(62, 771, 28) // "BothNewLineAndCarriageReturn"

    },
    "IO::Console\0echoChanged\0\0dataReceived\0"
    "dataModeChanged\0autoscrollChanged\0"
    "lineEndingChanged\0displayModeChanged\0"
    "historyItemChanged\0textDocumentChanged\0"
    "showTimestampChanged\0stringReceived\0"
    "text\0save\0clear\0historyUp\0historyDown\0"
    "send\0data\0setEcho\0enabled\0print\0"
    "fontFamily\0setDataMode\0DataMode\0mode\0"
    "setAutoscroll\0setShowTimestamp\0"
    "setLineEnding\0LineEnding\0setDisplayMode\0"
    "DisplayMode\0append\0str\0addTimestamp\0"
    "displayData\0onDataSent\0addToHistory\0"
    "command\0onDataReceived\0dataModes\0"
    "lineEndings\0displayModes\0formatUserHex\0"
    "echo\0autoscroll\0showTimestamp\0"
    "saveAvailable\0dataMode\0IO::Console::DataMode\0"
    "lineEnding\0IO::Console::LineEnding\0"
    "displayMode\0IO::Console::DisplayMode\0"
    "currentHistoryString\0DisplayPlainText\0"
    "DisplayHexadecimal\0DataUTF8\0DataHexadecimal\0"
    "NoLineEnding\0NewLine\0CarriageReturn\0"
    "BothNewLineAndCarriageReturn"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_IO__Console[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      32,   14, // methods
       8,  238, // properties
       3,  270, // enums/sets
       0,    0, // constructors
       0,       // flags
      10,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  174,    2, 0x06 /* Public */,
       3,    0,  175,    2, 0x06 /* Public */,
       4,    0,  176,    2, 0x06 /* Public */,
       5,    0,  177,    2, 0x06 /* Public */,
       6,    0,  178,    2, 0x06 /* Public */,
       7,    0,  179,    2, 0x06 /* Public */,
       8,    0,  180,    2, 0x06 /* Public */,
       9,    0,  181,    2, 0x06 /* Public */,
      10,    0,  182,    2, 0x06 /* Public */,
      11,    1,  183,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    0,  186,    2, 0x0a /* Public */,
      14,    0,  187,    2, 0x0a /* Public */,
      15,    0,  188,    2, 0x0a /* Public */,
      16,    0,  189,    2, 0x0a /* Public */,
      17,    1,  190,    2, 0x0a /* Public */,
      19,    1,  193,    2, 0x0a /* Public */,
      21,    1,  196,    2, 0x0a /* Public */,
      23,    1,  199,    2, 0x0a /* Public */,
      26,    1,  202,    2, 0x0a /* Public */,
      27,    1,  205,    2, 0x0a /* Public */,
      28,    1,  208,    2, 0x0a /* Public */,
      30,    1,  211,    2, 0x0a /* Public */,
      32,    2,  214,    2, 0x0a /* Public */,
      32,    1,  219,    2, 0x2a /* Public | MethodCloned */,
      35,    0,  222,    2, 0x08 /* Private */,
      36,    1,  223,    2, 0x08 /* Private */,
      37,    1,  226,    2, 0x08 /* Private */,
      39,    1,  229,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
      40,    0,  232,    2, 0x02 /* Public */,
      41,    0,  233,    2, 0x02 /* Public */,
      42,    0,  234,    2, 0x02 /* Public */,
      43,    1,  235,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   12,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   18,
    QMetaType::Void, QMetaType::Bool,   20,
    QMetaType::Void, QMetaType::QString,   22,
    QMetaType::Void, 0x80000000 | 24,   25,
    QMetaType::Void, QMetaType::Bool,   20,
    QMetaType::Void, QMetaType::Bool,   20,
    QMetaType::Void, 0x80000000 | 29,   25,
    QMetaType::Void, 0x80000000 | 31,   25,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,   33,   34,
    QMetaType::Void, QMetaType::QString,   33,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,   18,
    QMetaType::Void, QMetaType::QString,   38,
    QMetaType::Void, QMetaType::QByteArray,   18,

 // methods: parameters
    QMetaType::QStringList,
    QMetaType::QStringList,
    QMetaType::QStringList,
    QMetaType::QString, QMetaType::QString,   12,

 // properties: name, type, flags
      44, QMetaType::Bool, 0x00495103,
      45, QMetaType::Bool, 0x00495103,
      46, QMetaType::Bool, 0x00495103,
      47, QMetaType::Bool, 0x00495001,
      48, 0x80000000 | 49, 0x0049510b,
      50, 0x80000000 | 51, 0x0049510b,
      52, 0x80000000 | 53, 0x0049510b,
      54, QMetaType::QString, 0x00495001,

 // properties: notify_signal_id
       0,
       3,
       8,
       1,
       2,
       4,
       5,
       6,

 // enums: name, alias, flags, count, data
      31,   31, 0x2,    2,  285,
      24,   24, 0x2,    2,  289,
      29,   29, 0x2,    4,  293,

 // enum data: key, value
      55, uint(IO::Console::DisplayMode::DisplayPlainText),
      56, uint(IO::Console::DisplayMode::DisplayHexadecimal),
      57, uint(IO::Console::DataMode::DataUTF8),
      58, uint(IO::Console::DataMode::DataHexadecimal),
      59, uint(IO::Console::LineEnding::NoLineEnding),
      60, uint(IO::Console::LineEnding::NewLine),
      61, uint(IO::Console::LineEnding::CarriageReturn),
      62, uint(IO::Console::LineEnding::BothNewLineAndCarriageReturn),

       0        // eod
};

void IO::Console::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Console *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->echoChanged(); break;
        case 1: _t->dataReceived(); break;
        case 2: _t->dataModeChanged(); break;
        case 3: _t->autoscrollChanged(); break;
        case 4: _t->lineEndingChanged(); break;
        case 5: _t->displayModeChanged(); break;
        case 6: _t->historyItemChanged(); break;
        case 7: _t->textDocumentChanged(); break;
        case 8: _t->showTimestampChanged(); break;
        case 9: _t->stringReceived((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: _t->save(); break;
        case 11: _t->clear(); break;
        case 12: _t->historyUp(); break;
        case 13: _t->historyDown(); break;
        case 14: _t->send((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 15: _t->setEcho((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 16: _t->print((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 17: _t->setDataMode((*reinterpret_cast< const DataMode(*)>(_a[1]))); break;
        case 18: _t->setAutoscroll((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 19: _t->setShowTimestamp((*reinterpret_cast< const bool(*)>(_a[1]))); break;
        case 20: _t->setLineEnding((*reinterpret_cast< const LineEnding(*)>(_a[1]))); break;
        case 21: _t->setDisplayMode((*reinterpret_cast< const DisplayMode(*)>(_a[1]))); break;
        case 22: _t->append((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const bool(*)>(_a[2]))); break;
        case 23: _t->append((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 24: _t->displayData(); break;
        case 25: _t->onDataSent((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 26: _t->addToHistory((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 27: _t->onDataReceived((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 28: { QStringList _r = _t->dataModes();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 29: { QStringList _r = _t->lineEndings();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 30: { QStringList _r = _t->displayModes();
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 31: { QString _r = _t->formatUserHex((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::echoChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::dataReceived)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::dataModeChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::autoscrollChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::lineEndingChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::displayModeChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::historyItemChanged)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::textDocumentChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (Console::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::showTimestampChanged)) {
                *result = 8;
                return;
            }
        }
        {
            using _t = void (Console::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Console::stringReceived)) {
                *result = 9;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<Console *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->echo(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->autoscroll(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->showTimestamp(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->saveAvailable(); break;
        case 4: *reinterpret_cast< IO::Console::DataMode*>(_v) = _t->dataMode(); break;
        case 5: *reinterpret_cast< IO::Console::LineEnding*>(_v) = _t->lineEnding(); break;
        case 6: *reinterpret_cast< IO::Console::DisplayMode*>(_v) = _t->displayMode(); break;
        case 7: *reinterpret_cast< QString*>(_v) = _t->currentHistoryString(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<Console *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setEcho(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setAutoscroll(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setShowTimestamp(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setDataMode(*reinterpret_cast< IO::Console::DataMode*>(_v)); break;
        case 5: _t->setLineEnding(*reinterpret_cast< IO::Console::LineEnding*>(_v)); break;
        case 6: _t->setDisplayMode(*reinterpret_cast< IO::Console::DisplayMode*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject IO::Console::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_IO__Console.data,
    qt_meta_data_IO__Console,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *IO::Console::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *IO::Console::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_IO__Console.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int IO::Console::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 32)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 32;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 32)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 32;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 8;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 8;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void IO::Console::echoChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void IO::Console::dataReceived()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void IO::Console::dataModeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void IO::Console::autoscrollChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void IO::Console::lineEndingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void IO::Console::displayModeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void IO::Console::historyItemChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void IO::Console::textDocumentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void IO::Console::showTimestampChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void IO::Console::stringReceived(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 9, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
